package com.hm.day1211;

import java.util.Map;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Homework1210 {

	public static void main(String[] args) {
	
		ApplicationContext ac=new AnnotationConfigApplicationContext(MyConfig.class);
		
	/*String[] beanDefinitionNames = ac.getBeanDefinitionNames();
		for (String string : beanDefinitionNames) {
			System.out.println(string);
		}*/
		
		XiaoMing bean = ac.getBean(XiaoMing.class);
		System.out.println(bean);
		
		
	}
}
